package com.zhao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhao.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    void savePerms(@Param("ids")String[] ids, @Param("rid")String rid);

    List<String> checkedList(Integer rid);

    void delsPerms(String rid);

    String getUserRoleName(Integer userId);
}
